package cn.tk.service.mr.impl;

import cn.tk.model.entity.mr.OutcallCollect;
import cn.tk.repository.mr.OutcallCollectDao;
import cn.tk.service.mr.OutcallCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by denglw on 2021/8/20.<br/>
 * Desc: 信息采集 服务实现层
 */
@Service
public class OutcallCollectServiceImpl implements OutcallCollectService {

    @Autowired
    private OutcallCollectDao outcallCollectDao;

    @Override
    public void save(OutcallCollect collect) {
        outcallCollectDao.save(collect);
    }

    @Override
    public List<OutcallCollect> getSessionCollects(String userId, String sessionId) {
        return outcallCollectDao.findByUserIdAndSessionId(userId, sessionId);
    }
}
